package cn.com.coding.system.service.impl;

import cn.com.coding.common.utils.PageUtil;
import cn.com.coding.common.utils.Query;
import cn.com.coding.system.dao.UserPurseDao;
import cn.com.coding.system.domin.UserPurseEntity;
import cn.com.coding.system.service.UserPurseService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.Map;


@Service("userPurseService")
public class UserPurseServiceImpl extends ServiceImpl<UserPurseDao, UserPurseEntity> implements UserPurseService {

    @Override
    public PageUtil queryPage(Map<String, Object> params) {
        IPage<UserPurseEntity> page = this.page(new Query<UserPurseEntity>().getPage(params), new QueryWrapper<UserPurseEntity>());

        return new PageUtil(page);
    }

}